package com.qianji.service.impl;

import com.qianji.mapper.QrCodeMapper;
import com.qianji.pojo.QRCodeDto;
import com.qianji.service.QrCodeService;
import com.qianji.vo.QrCodeAddVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QrcodeServiceImp implements QrCodeService {

    @Autowired
    private QrCodeMapper qrCodeMapper;

    @Override
    public Integer qrCodeAdd(QrCodeAddVO qrCodeAddVO) {

        return qrCodeMapper.qrCodeAdd(qrCodeAddVO);
    }

    @Override
    public Integer qrCodeUpdate(QRCodeDto qrCodeDto) {

        return qrCodeMapper.qrCodeUpdate(qrCodeDto);
    }

    @Override
    public List<QRCodeDto> findQrCode(String qrName) {

        return qrCodeMapper.findQrCode(qrName);
    }

    @Override
    public QRCodeDto findById(Long id) {

        return qrCodeMapper.findById(id);
    }
}
